package com.zbkj.service.service.project;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.project.EstimateInformation;
import com.zbkj.common.request.project.AdminInfomationRequest;
import com.zbkj.common.request.project.InformationQueryRequest;

import java.util.List;

/**
 * <p>
 * 项目估算资料表(服务端上传) 服务类
 * </p>
 *
 * @author 
 * @since 2024-07-08
 */
public interface EstimateInformationService extends IService<EstimateInformation> {

    EstimateInformation getOneRecord(Long id, Long projectId, Integer fileType, Integer status);

    /**
     * 将当前有效记录更新为历史记录
     * @param projectId
     * @param fileTypeList  资料类型集合
     * @return
     */
    boolean updateStatusToHis(Long projectId, List<Integer> fileTypeList);

    boolean informationSaveProcess(AdminInfomationRequest infomationRequest, Long adminUserId);

    PageInfo<EstimateInformation> getInformationList(InformationQueryRequest queryRequest);

    int getAiInformationCount(Long projectId, Integer fileType, String reqNo);

    EstimateInformation getValidFileObject(Long projectId, Integer fileType, String reqNo);

    boolean delByProjectId(Long projectId, List<Integer> fileTypeList);
}
